/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.dao;

import com.xy.biz.base.domain.po.BizCodeIncrPO;

/**
 * 
 * 
 * @author zsp
 * @date 2020-8-26
 */
public interface BizCodeIncrDao {
	
	/**
	 * 保存
	 *
	 * @param bizCodeIncrPO
	 */
	int saveBizCodeIncr(BizCodeIncrPO bizCodeIncrPO);
	
	/**
	 * 更新
	 *
	 * @param bizCodeId
	 * @param timestamp
	 * @param newValue
	 * @param oldValue
	 */
	int updateBizCodeIncr(Long bizCodeId, Long timestamp, Integer newValue, Integer oldValue);
	
	/**
	 * 查找一个
	 *
	 * @param bizCodeId
	 * @param timestamp
	 * @return
	 */
	Integer getBizCodeIncr(Long bizCodeId, Long timestamp);
	
}
